package com.hyt.it.ogt.kq.service.gov.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hyt.it.ogt.kq.service.gov.model.entity.OfficeRoom;
import com.hyt.it.ogt.kq.service.gov.model.param.FiltrateRoomParam;
import com.hyt.it.ogt.kq.service.gov.model.vo.FiltrateRoomPageVO;
import com.hyt.model.PageParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 考场信息表 Mapper 接口
 * </p>
 *
 * @author huangyh
 * @since 2021-03-08
 */
public interface OfficeRoomMapper extends BaseMapper<OfficeRoom> {

    /**
     * 筛选编排考点考场分页数据
     * @param pageParam 分页参数对象
     * @param filtrateRoomParam 查询参数对象
     * @param officeId 机构id
     * @return 编排考点考场分页数据
     */
    Page<FiltrateRoomPageVO> filtratePage(PageParam<FiltrateRoomPageVO> pageParam,
                                          FiltrateRoomParam filtrateRoomParam,
                                          String officeId);

    /**
     * 获取机构考场
     * @param roomIdList
     * @return
     */
    List<OfficeRoom> getByIdList(@Param("roomIdList")List<String> roomIdList);

}
